package com.yf.tz.enums;

import lombok.Getter;

import java.util.Arrays;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date ${datetime}
 */
@Getter
public enum AccountRecordStatusEnum {


                   WAIT(0,"未完成")
                                    ,


                   DONE(1,"已完成")

                                ;


        int index;
        String value;

    public static String[] names(){
        return Arrays.stream(AccountRecordStatusEnum.values()).map(m->m.getValue()).toArray(String[]::new);
    }

    AccountRecordStatusEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return AccountRecordStatusEnum.values()[idx].getValue();
    }

}
